//
//  ClickImageViewController.h
//  MusicList
//
//  Created by RKL on 2018/5/23.
//  Copyright © 2018年 BOE-SBG-CTO. All rights reserved.
//

#import <UIKit/UIKit.h>
@class ClickImageViewController;

typedef void(^EditImageVCBlock)(UIImage * editImage);


@protocol ClickImageViewControllerDelegate <NSObject>

-(void)ClipViewController:(ClickImageViewController *)clipViewController FinishClipImage:(UIImage *)editImage;

@end



@interface ClickImageViewController : UIViewController<UIGestureRecognizerDelegate>

@property (nonatomic, assign)CGFloat scaleRation;//图片缩放的最大倍数
@property (nonatomic, assign)CGFloat radius; //圆形裁剪框的半径

@property (nonatomic, copy) NSString * url;  //图片地址

@property (nonatomic, copy) EditImageVCBlock editImageVCBlock;

@property (nonatomic, weak)id<ClickImageViewControllerDelegate>delegate;

-(instancetype)initWithImage:(UIImage *)image;
@end
